using Framework.Utils.SingletonTemplate;
using IcecreamView;
using UnityEngine;

namespace Framework.UI
{
    public class UIManager : SingletonBase<IC_Controller , UIManager>
    {
        protected override void OnInit()
        {
            var canvas = GameObject.Find("Canvas").transform;
            Object.DontDestroyOnLoad(canvas.gameObject);
            _instance.Init( Resources.Load<IC_Resource_ViewConfig>("Config/ViewConfig") , canvas);
        }
    }
}